<?php

namespace Portal\InvoiceBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * MessageStatusHistory
 *
 * @ORM\Table(name="message_status_history")
 * @ORM\Entity
 */
class MessageStatusHistory
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="message_id", type="integer", nullable=false)
     */
    private $messageId;

    /**
     * @var integer
     *
     * @ORM\Column(name="prev_status", type="integer", nullable=true)
     */
    private $prevStatus;

    /**
     * @var integer
     *
     * @ORM\Column(name="current_status", type="integer", nullable=true)
     */
    private $currentStatus;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
     */
    private $createdAt;

    /**
     * @var string
     *
     * @ORM\Column(name="created_user_id", type="string", length=16, nullable=false)
     */
    private $createdUserId;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set messageId
     *
     * @param integer $messageId
     * @return MessageStatusHistory
     */
    public function setMessageId($messageId)
    {
        $this->messageId = $messageId;
    
        return $this;
    }

    /**
     * Get messageId
     *
     * @return integer 
     */
    public function getMessageId()
    {
        return $this->messageId;
    }

    /**
     * Set prevStatus
     *
     * @param integer $prevStatus
     * @return MessageStatusHistory
     */
    public function setPrevStatus($prevStatus)
    {
        $this->prevStatus = $prevStatus;
    
        return $this;
    }

    /**
     * Get prevStatus
     *
     * @return integer 
     */
    public function getPrevStatus()
    {
        return $this->prevStatus;
    }

    /**
     * Set currentStatus
     *
     * @param integer $currentStatus
     * @return MessageStatusHistory
     */
    public function setCurrentStatus($currentStatus)
    {
        $this->currentStatus = $currentStatus;
    
        return $this;
    }

    /**
     * Get currentStatus
     *
     * @return integer 
     */
    public function getCurrentStatus()
    {
        return $this->currentStatus;
    }

    /**
     * Set createdAt
     *
     * @param \DateTime $createdAt
     * @return MessageStatusHistory
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;
    
        return $this;
    }

    /**
     * Get createdAt
     *
     * @return \DateTime 
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * Set createdUserId
     *
     * @param string $createdUserId
     * @return MessageStatusHistory
     */
    public function setCreatedUserId($createdUserId)
    {
        $this->createdUserId = $createdUserId;
    
        return $this;
    }

    /**
     * Get createdUserId
     *
     * @return string 
     */
    public function getCreatedUserId()
    {
        return $this->createdUserId;
    }
}